<div>
<form method="get">
	<span>UID: </span>
	<input type="text" name="uid" value="<?php echo $uid; ?>" />
	<input type="submit" value="  查 询  " />
	<input type="hidden" name="c" value="admin">
	<input type="hidden" name="a" value="herolist">
</form>
</div>
<div style="background-color:#CCC;width:800px;">
<table width="100%" border="0" cellpadding="5" cellspacing="1">
<?php
if($res)
{
	echo "<tr>
		<td>ID</td>
		<td>配置ID</td>
		<td>经验</td>
		<td>操作</td>
		</tr>";
	foreach($res as $row)
	{
		echo "<tr>
		<td>{$row['hid']}</td>
		<td>{$row['hsn']}</td>
		<td>{$row['xp']}</td>
		<td>
		<a href=\"?c=admin&a=heroedit&uid={$uid}&hid={$row['hid']}\">修改</a>
		<a href=\"?c=admin&a=heronew&uid={$uid}\">添加</a>
		<a href=\"?c=admin&a=herododel&uid={$uid}&hid={$row['hid']}\" onclick=\"if(confirm('确定要删除吗？')){return true;} else {return false;}\">删除</a>
		</td>
		</tr>";
	}
}
else echo "<div><a href=\"?c=admin&a=heronew&uid={$uid}\">添加</a></div>";
?>
</table>
</div>